/**
 * 
 */
package br.com.cept.sce.commons.factory;

import br.com.cept.sce.dominio.IPerfil;
import br.com.cept.sce.dominio.IUsuario;
import br.com.cept.sce.dominio.impl.Perfil;
import br.com.cept.sce.dominio.impl.Usuario;

/**
 * @author Junier Amorim
 *
 */
public class Factory {
	
	private static Factory factory;
	
	private Factory(){
		//Singleton
	}
	
	public static Factory getInstance(){
		if(factory == null)
			factory = new Factory();
		return factory;
	}
	
	public IUsuario obterUsuario(){
		return (IUsuario)(new Usuario());
	}
	
	public IPerfil obterPerfil(){
		return (IPerfil)(new Perfil());
	}
	
}
